/*
*Copyright (c) Nikhil Jain.
*Project ICARUS, communications and 
*artificial intelligence.
*/



/*
* To change this template, choose Tools | Templates
* and open the template in the editor.
 */
package javadrone.command.commandset;

//~--- non-JDK imports --------------------------------------------------------

import javadrone.command.*;

import javadrone.remotepackage.RemoteBootPackage;

/**
 *
 * @author Nikzzay
 */
public class BootStrapCommand extends RealTimeCommand {
    private RemoteBootPackage rbp;

    public BootStrapCommand(RemoteBootPackage rbp) {
        super(Priority.MAX);
        this.rbp = rbp;
    }

    @Override
    public void execute(CommandExecutor ce) {
        ce.boot(rbp);
    }

    @Override
    public String toString() {
        return "COMMAND: BOOTSTRAP";
    }

    @Override
    public CommandDescriptor getDescriptor() {
        return CommandDescriptor.BOOTSTRAP;
    }
}


//~ Formatted by Jindent --- http://www.jindent.com
